<template>
  <div class='wrapper'>
    <swiper ref="mySwiper"
            :options="swiperOption">
      <!-- slides -->
      <swiper-slide>
        <img class="swiper-img"
             src="//mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20197/3f5ff03fa0c024b930f515e63ae2c702.jpg_945x288_7dff4510.jpg"
             alt="">
      </swiper-slide>
      <swiper-slide>
        <img class="swiper-img"
             src="//mp-piao-admincp.qunarzz.com/mp_piao_admin_mp_piao_admin/admin/20199/387c5e767cccc7a3172ed7ea15b50727.png"
             alt="">
      </swiper-slide>
      <!-- Optional controls -->
      <div class="swiper-pagination"
           slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
export default {
  name: 'HomeSwiper',
  data () {
    return {
      swiperOption: {
        pagination: '.swiper-pagination',
        loop: true,
        autoplay: 2000
      }
    }
  }
}
</script>

<style lang="stylus" scoped>
.wrapper >>> .swiper-pagination-bullet-active{
  background-color: #fff;
}
.wrapper {
  width: 7.5rem;
  height: 100%;
  background-color: #eee;
}

.swiper-img {
  width: 100%;
  height: 100%;
  // vertical-align:top; 解决图片下方三像素问题
}
</style>
